/**
 * 流程设计 api 封装
 *
 * @Author:    ADog
 * @Date:      2025-10-06 20:16:41
 * @Copyright  1.0
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const flowDeployApi = {

  /**
   * 分页查询  @author  ADog
   */
  queryPage : (param) => {
    return postRequest('/flw/deploy/list', param);
  },
  /**
   * 分页查询  @author  ADog
   */
  listProcDef : (param) => {
    return postRequest('/flw/deploy/listProcDef', param);
  },

  queryFlowXml:(id) => {
    return getRequest(`/flw/deploy/queryFlowXml/${id}`);
  },

  getFlowDef:(id) => {
    return getRequest(`/flw/deploy/getFlowDef/${id}`);
  },
  startProcess : (param) => {
    return postRequest('/flw/instance/startProcess', param);
  },
  /**
   * 获取流程图 @author  ADog
   */
  getProcessDiagram:(id) => {
    return getRequest(`/flw/deploy/getProcessDiagram/${id}`);
  },
};
